<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScsgtbarchrolCreateDlg" widgetVar="ScsgtbarchrolCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateScsgtbarchrolTitle}">

            <h:form id="ScsgtbarchrolCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{scsgtbarchrolController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateScsgtbarchrolLabel_archivo}" for="archivo" />
                        <p:inputText id="archivo" value="#{scsgtbarchrolController.selected.archivo}" title="#{myBundle.CreateScsgtbarchrolTitle_archivo}" required="true" requiredMessage="#{myBundle.CreateScsgtbarchrolRequiredMessage_archivo}"/>

                        <p:outputLabel value="#{myBundle.CreateScsgtbarchrolLabel_directorio}" for="directorio" />
                        <p:inputText id="directorio" value="#{scsgtbarchrolController.selected.directorio}" title="#{myBundle.CreateScsgtbarchrolTitle_directorio}" required="true" requiredMessage="#{myBundle.CreateScsgtbarchrolRequiredMessage_directorio}"/>

                        <p:outputLabel value="#{myBundle.CreateScsgtbarchrolLabel_descripcion}" for="descripcion" />
                        <p:inputText id="descripcion" value="#{scsgtbarchrolController.selected.descripcion}" title="#{myBundle.CreateScsgtbarchrolTitle_descripcion}" required="true" requiredMessage="#{myBundle.CreateScsgtbarchrolRequiredMessage_descripcion}"/>

                        <p:outputLabel value="#{myBundle.CreateScsgtbarchrolLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{scsgtbarchrolController.selected.observaciones}" title="#{myBundle.CreateScsgtbarchrolTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreateScsgtbarchrolRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.CreateScsgtbarchrolLabel_scsgtbrolesid}" for="scsgtbrolesid" />
                        <p:selectOneMenu id="scsgtbrolesid" value="#{scsgtbarchrolController.selected.scsgtbrolesid}" required="true" requiredMessage="#{myBundle.EditScsgtbarchrolRequiredMessage_scsgtbrolesid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scsgtbrolesController.items}"
                                           var="scsgtbrolesidItem"
                                           itemValue="#{scsgtbrolesidItem}"
                                           itemLabel="#{scsgtbrolesidItem.scsgtbrolesid.toString()}"
                                           />
                            <f:converter binding="#{scsgtbrolesConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scsgtbarchrolController.saveNew}" value="#{myBundle.Save}" update="display,:ScsgtbarchrolListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScsgtbarchrolCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScsgtbarchrolCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
